package top.juntech.serverconsumerfeignhystrix.client;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

@Component
public class FeignServiceHiClientHystrix implements FeignServiceHiClient {


//    如果发生熔断，则调用这个方法
    @Override
    public String hi(@RequestParam String name) {
        return "sorry,"+name+"服务好像挂掉了哦！";
    }
}
